// 商品详情区域
import request from '@/utils/request'

// 商品详情
export const findGoods = (id) => {
    return request('/goods', 'get', { id })
}
// 获取商品推荐 不传id是猜你喜欢
export const findRelGoods = ({ id, limit = 16 }) => {
    return request('/goods/relevant', 'get', { id, limit })
}
// 获取热销棒数据
export const findHotGoods = ({ id, type, limit = 3 }) => {
    return request('/goods/hot', 'get', { id, type, limit })
}

// 获取商品评价信息
export const findCommentInfoByGoods = (id) => {
    return request(`/goods/${id}/evaluate`,'get')
}
export const findGoodsCommentList = (id,params) => {
    return request(`/goods/${id}/evaluate/page`,'get',params)
}